package com.gopay.common.domain.bank;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.gopay.common.domain.BaseEntity;

/**
 * 对账报警记录
 * 
 * @CheckOrderFailLog.java
 * @author zhengxue
 * @2014-10-30 下午2:17:58 www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "BIS_CHECK_ORDER_FAIL_LOG")
public class CheckOrderFailLog extends BaseEntity {

    /**
     * 
     */
    private static final long serialVersionUID = -8667669152878099199L;
    
    @Id
    @Column(name = "ID")
    @GenericGenerator(name = "idGenerator", strategy = "uuid")
    @GeneratedValue(generator = "idGenerator")
    private String id;

    /**
     * 银行码
     */
    @Column(name = "BANK_CODE")
    private String bankCode;

    /**
     * 交易时间
     */
    @Column(name = "TRANS_TIME")
    private Date transTime;

    /**
     * 对账数
     */
    @Column(name = "CHECK_COUNT")
    private int checkCount;

    /**
     * 失败数
     */
    @Column(name = "FAIL_COUNT")
    private int failCount;

    /**
     * 失败率
     */
    @Column(name = "FAILURE_RATE")
    private double failureRate;

    /**
     * 失败原因
     */
    @Column(name = "REMARK")
    private String remark;

    public String getBankCode() {
        return bankCode;
    }

    public void setBankCode(String bankCode) {
        this.bankCode = bankCode;
    }

    public Date getTransTime() {
        return transTime;
    }

    public void setTransTime(Date transTime) {
        this.transTime = transTime;
    }

    public int getCheckCount() {
        return checkCount;
    }

    public void setCheckCount(int checkCount) {
        this.checkCount = checkCount;
    }

    public int getFailCount() {
        return failCount;
    }

    public void setFailCount(int failCount) {
        this.failCount = failCount;
    }

    public double getFailureRate() {
        return failureRate;
    }

    public void setFailureRate(double failureRate) {
        this.failureRate = failureRate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
